package com.sumainfor.zuul.controller.gmio;

import com.sumainfor.zuul.service.impl.ZhzgSearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 工作台搜索专用
 * <p>
 *
 * @author: zc
 * @create: 2019-09-20 15:21
 **/
@RestController
@RequestMapping("/provider/ZhzgSearch")
public class ZhzgSearchController {

    @Autowired
    ZhzgSearchService zhzgSearchService;


    /**
     * 根据员工手机号查询员工详情
     * @author zhoucong
     * @data 2019/9/20
     * @Param
     * @return
     */
    @PostMapping("/getZhzgEmployeesList")
    public List<Map<String,Object>> getZhzgEmployeesList(@RequestParam String search){
        return zhzgSearchService.getZhzgEmployeesList(search);
    }
}
